<?php
	include_once 'isLogin.php';
	
	//登陆者资料
	$admin=$commonc->getInfo("admin",$_COOKIE['admin_id']);
	//管理员角色
	$group_id=$admin['group_id'];
	$group=$commonc->getInfo('admin_group',$group_id);
	$admin['group_name']=$group['group_name'];
	$admin['ip']=$_SERVER['REMOTE_ADDR'];
	
	// $sql="admin where flag='";
	// $num1=$commonc->getNum($sql."1'");
	// $num2=$commonc->getNum($sql."2'");
	// $num3=$commonc->getNum($sql."3'");
	
	$sql="user";
	$num4=$commonc->getNum($sql." where reg_time like '".date("Y-m-d")."%'");
	$num5=$commonc->getNum($sql);
	
	$smarty->assign("num1",$num1);
	$smarty->assign("num2",$num2);
	$smarty->assign("num3",$num3);
	$smarty->assign("num4",$num4);
	$smarty->assign("num5",$num5);
	$smarty->assign("admin",$admin);
	$smarty->display("right.html");
?>